package 结对作业;
import java.lang.*;
import java.util.Scanner;
public class Question {      //产生问题
    String Question() {
        int result;
        int count = 0;     //记录共产生了几个符号
        String s = "";
        String str[] = new String[100];
        int choice;
        Scanner in = new Scanner(System.in);
        RandomNum num = new RandomNum();
        RandomChar ch = new RandomChar();
            choice = num.RandomNum()+1;     //choice是一个1-15的数，是每个题随机数个数
            for (int j = 1; j <= choice + 1; j++) {        //产生随机数
                s = s + num.RandomNum();
                if (count < choice) {
                    s = s + " " + ch.RandomChar() + " ";
                    count++;
                }
                s = s + num.RandomNum();

                count = 0;
                choice = 0;
            }
        return s;
    }
}
